package com.foton.logistic.model.order;

import java.io.Serializable;
import java.util.List;

public class OrderEntity implements Serializable{

    /**
     * id : 1
     * orderNum : 整车运单编号、零部件货单号
     * lineDesc : 路线描述
     * remark : 备注
     * arriveDate : 2016-06-30 15:20
     * estimateBeginDate : 2016-06-30 15:20
     * status : 1
     * startPlace : {"address":"发货地址","lat":"纬度","lng":"经度"}
     * endPlace : {"address":"目的地地址","lat":"纬度","lng":"经度"}
     * signStart : {"operateTime":"2016-06-30 15:20","address":"地址"}
     * signEnd : {"operateTime":"2016-06-30 15:20","address":"地址"}
     * startImage : {"operateTime":"2016-06-30 15:20","imageList":"http://5345.jpg"}
     * arriveImage : {"operateTime":"2016-06-30 15:20","imageList":"http://5345.jpg"}
     * beginDate : 2016-06-30 15:20
     * endDate : 2016-06-30 19:20
     * abnormalList : [{"content":"XXX","operateTime":"2016-10-10 15:45","imageList":"http://5345.jpg"}]
     */

    public String id;
    public String orderNum;
    public String lineDesc;
    public String remark;
    public String arriveDate;
    public String estimateBeginDate;
    public String sendDate;
    public String schedId;//批量调度标示
    public int status;
    public int realStatus;
    public String image_prefix;//图片拼接前缀
    /**
     * address : 发货地址
     * lat : 纬度
     * lng : 经度
     */

    public PlaceEntity startPlace;
    /**
     * address : 目的地地址
     * lat : 纬度
     * lng : 经度
     */

    public PlaceEntity endPlace;
    /**
     * operateTime : 2016-06-30 15:20
     * address : 地址
     */

    public SignEntity signStart;
    /**
     * operateTime : 2016-06-30 15:20
     * address : 地址
     */

    public SignEntity signEnd;

    public SignEntity orderReceive;
    /**
     * operateTime : 2016-06-30 15:20
     * imageList : http://5345.jpg
     */

    public OrderImageEntity startImage;
    /**
     * operateTime : 2016-06-30 15:20
     * imageList : http://5345.jpg
     */

    public OrderImageEntity arriveImage;
    public String beginDate;
    public String endDate;
    /**
     * content : XXX
     * operateTime : 2016-10-10 15:45
     * imageList : http://5345.jpg
     */

    public List<AbnormalEntity> abnormalList;

    public boolean isStarted = false;//出起点圈的标识
    public boolean isArrived = false;//到终点圈的标识
    public boolean isArrivedAndOut = false;//到终点圈然后出圈的标识

    public boolean isArrivedSign = false;//到达签到的标识
    public int waitCnt = 0;//待上传轨迹条数
    public String mergeOrderNum;//合并后的所有订单号
    public int mergeOrderCnt = 1;//合并后的所有订单号数量
    public List<OrderEntity> schedOrderList;//批量调度多地址订单列表

    public boolean isEnter = false;//进起点圈的标识
    public long arrivedTime = 0;//到终点圈的时间戳
}